﻿using Microsoft.Practices.Unity;
using ThinkDotNetEditorLib.Models.StaticObjects;

namespace ThinkDotNetEditorLib
{
    public class ServiceLocator:UnityContainer
    {
        private ServiceLocator()
        {
            RegisterType(typeof (IStaticObjectInfoLoader), typeof (StaticObjectInfoLoader));
        }        
        private static ServiceLocator _instance;
        static public ServiceLocator Instance
        {
            get { return _instance ?? (_instance = new ServiceLocator()); }
        }
       
    }
}
